package com.jzo2o.customer.controller.agency;


import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.service.IAgencyCertificationAuditService;
import com.jzo2o.customer.service.IWorkerCertificationAuditService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * <p>
 * 机构认证信息审核表 前端控制器
 * </p>
 *
 * @author xuchun
 * @since 2024-08-12
 */
@RestController
@RequestMapping("/agency/agency-certification-audit")
@Api(tags = "机构端 - 机构认证信息审核接口")
public class AgencyCertificationAuditController {
    @Resource
    private IAgencyCertificationAuditService agencyCertificationAuditService;

    @ApiOperation("机构提交审核")
    @PostMapping
    public void submitAudit(@RequestBody AgencyCertificationAuditAddReqDTO dto){
        agencyCertificationAuditService.submitAudit(dto);
    }

    @ApiOperation("查询最新的驳回原因")
    @GetMapping("rejectReason")
    public Map<String,String> getRejectReason(){

        return agencyCertificationAuditService.getRejectReason();
    }


}
